<!DOCTYPE html>  
<html>  
  
    <head>  
        <meta charset="utf-8">  
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />  
        <title>入口页面</title>  
        <link href="css/mui.min.css" rel="stylesheet" />  
        <style type="text/css">  
            body {  
                background-color: black;  
            }  
        </style>  
    </head>  
  
    <body>  
        <script src="js/mui.min.js"></script>  
        <script type="text/javascript" charset="utf-8">  
            mui.init({
            	swipeBack:true ,//启用右滑关闭功能
            });
            mui.plusReady(function() {  
                /**  
                 * 获取本地存储中launchFlag的值  
                 * http://www.html5plus.org/doc/zh_cn/storage.html#plus.storage.getItem  
                 * 若存在，说明不是首次启动，直接进入首页；  
                 * 若不存在，说明是首次启动，进入引导页；  
                 */  
                var launchFlag = plus.storage.getItem("launchFlag");  
                if(launchFlag) {  
                    mui.openWindow({  
                        url: "tab-webview-main.html",  
                        id: "main",  
                        extras: {  
                            mark: "index" //额外的参数，仅仅是个标识，实际开发中不用；  
                        }  
                    });  
                } else {  
                    mui.openWindow({  
                        url: "guide.html",  
                        id: "guide"  
                    });  
                }  
            });  
        </script>  
    </body>  
  
</html>  